package my.headfirstjava.strategy.v3;

import my.headfirstjava.strategy.v3.behavior.FlayNoWy;
import my.headfirstjava.strategy.v3.behavior.FlayWithWings;
import my.headfirstjava.strategy.v3.behavior.Quack;
import my.headfirstjava.strategy.v3.behavior.Squeak;

/**
 * 红头鸭
 */
public class RedHeadDuck extends Duck   {

	public RedHeadDuck(){
		flyBehavior =new FlayWithWings();
		quackBehavior = new Quack();
	}


	public void display() {
		System.out.println("I'm a real Red Headed duck");
	}



}
